package com.zyg.cod.test.person;

import com.zyg.cod.annotation.FieldXmlAnnotation;
import com.zyg.cod.annotation.ListFieldAnnotation;
import com.zyg.cod.annotation.TableXmlAnnotation;
import com.zyg.cod.test.ClazzInfo;
import com.zyg.cod.test.FimanyInfo;
import com.zyg.cod.test.RelationInfo;
import com.zyg.cod.test.Student;

import java.util.List;

/**
 * @Dsc:  这就是一个人所包含的信息了
 * @Author: zyg
 * @Date: 2021/1/28
 */
@TableXmlAnnotation(TableName = "StudentVO",RelationType = 0,ElementFromName = "StudentVO" )
public class StudentVO {

	@FieldXmlAnnotation(FieldName = "students",ElementName = "Studentssss",isNeed = true)
	@ListFieldAnnotation(FieldType = Student.class)
	List<Student> students;

	@FieldXmlAnnotation(FieldName = "clazzInfos",ElementName = "ClazzInfos",isNeed = true)
	@ListFieldAnnotation(FieldType = ClazzInfo.class)
	List<ClazzInfo> clazzInfos;
	@FieldXmlAnnotation(FieldName = "fimanyInfos",ElementName = "FimanyInfos",isNeed = true)
	@ListFieldAnnotation(FieldType = FimanyInfo.class)
	List<FimanyInfo> fimanyInfos ;
	@FieldXmlAnnotation(FieldName = "relationInfos",ElementName = "RelationInfos",isNeed = true)
	@ListFieldAnnotation(FieldType = RelationInfo.class)
	List<RelationInfo> relationInfos;

	public List<Student> getStudents() {
		return students;
	}

	public void setStudents(List<Student> students) {
		this.students = students;
	}

	public List<ClazzInfo> getClazzInfos() {
		return clazzInfos;
	}

	public void setClazzInfos(List<ClazzInfo> clazzInfos) {
		this.clazzInfos = clazzInfos;
	}

	public List<FimanyInfo> getFimanyInfos() {
		return fimanyInfos;
	}

	public void setFimanyInfos(List<FimanyInfo> fimanyInfos) {
		this.fimanyInfos = fimanyInfos;
	}

	public List<RelationInfo> getRelationInfos() {
		return relationInfos;
	}

	public void setRelationInfos(List<RelationInfo> relationInfos) {
		this.relationInfos = relationInfos;
	}

	@Override
	public String toString() {
		return "StudentVO{" +
				"students=" + students +
				", clazzInfos=" + clazzInfos +
				", fimanyInfos=" + fimanyInfos +
				", relationInfos=" + relationInfos +
				'}';
	}
}
